import request from '@/utils/request'
const baseUrl = 'http://127.0.0.1:5000'

interface TeacherSubjectData {
  // teacherId: number
  subjectId?: number
  forecastYears?: 3
}

// 获取老师所教科目的数据
export const getTeacherSubjectDataService = (data: TeacherSubjectData) => {
	return request.post(`${baseUrl}/subject/predict`, data)
}